package com.ruoyi.cert.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.cert.mapper.CertiXueshiMapper;
import com.ruoyi.cert.domain.CertiXueshi;
import com.ruoyi.cert.service.ICertiXueshiService;

/**
 * 心理培训证书Service业务层处理
 * 
 * @author duanxinli
 * @date 2024-03-13
 */
@Service
public class CertiXueshiServiceImpl implements ICertiXueshiService 
{
    @Autowired
    private CertiXueshiMapper certiXueshiMapper;

    /**
     * 查询心理培训证书
     * 
     * @param id 心理培训证书主键
     * @return 心理培训证书
     */
    @Override
    public CertiXueshi selectCertiXueshiById(String id)
    {
        return certiXueshiMapper.selectCertiXueshiById(id);
    }

    /**
     * 查询心理培训证书列表
     * 
     * @param certiXueshi 心理培训证书
     * @return 心理培训证书
     */
    @Override
    public List<CertiXueshi> selectCertiXueshiList(CertiXueshi certiXueshi)
    {
        return certiXueshiMapper.selectCertiXueshiList(certiXueshi);
    }

    /**
     * 新增心理培训证书
     * 
     * @param certiXueshi 心理培训证书
     * @return 结果
     */
    @Override
    public int insertCertiXueshi(CertiXueshi certiXueshi)
    {
        return certiXueshiMapper.insertCertiXueshi(certiXueshi);
    }

    /**
     * 修改心理培训证书
     * 
     * @param certiXueshi 心理培训证书
     * @return 结果
     */
    @Override
    public int updateCertiXueshi(CertiXueshi certiXueshi)
    {
        return certiXueshiMapper.updateCertiXueshi(certiXueshi);
    }

    /**
     * 批量删除心理培训证书
     * 
     * @param ids 需要删除的心理培训证书主键
     * @return 结果
     */
    @Override
    public int deleteCertiXueshiByIds(String[] ids)
    {
        return certiXueshiMapper.deleteCertiXueshiByIds(ids);
    }

    /**
     * 删除心理培训证书信息
     * 
     * @param id 心理培训证书主键
     * @return 结果
     */
    @Override
    public int deleteCertiXueshiById(String id)
    {
        return certiXueshiMapper.deleteCertiXueshiById(id);
    }
}
